package com.yanqu.road.entity.kowloon;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 九龙城寨建筑信息
 */
@FieldTypeAnnotation(tableName = "t_u_kowloon_building_data", desc = "九龙城寨建筑数据")
public class KowloonBuildingData extends DataObject {

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "建筑id")
    private int buildingId;

    @FieldTypeAnnotation(desc = "建筑等级")
    private int level;

    @FieldTypeAnnotation(desc = "更新时间")
    private long updateTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(int buildingId) {
        if (this.buildingId != buildingId) {
            this.buildingId = buildingId;
            setOp(DataStatus.Update);
        }
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        if (this.level != level) {
            this.level = level;
            setOp(DataStatus.Update);
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if (this.updateTime != updateTime) {
            this.updateTime = updateTime;
            setOp(DataStatus.Update);
        }
    }
}
